package com.fly.service.Impl;

import com.fly.bean.SystemProperties;
import com.fly.mapper.SysPropertiesMapperO;
import com.fly.service.SysPropertiesServiceO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: Orchid
 * @Date: 2019/11/29 16:55
 * @Description:
 */
@Service
public class SysPropertiesServiceOImpl implements SysPropertiesServiceO {

    @Autowired
    SysPropertiesMapperO sysPropertiesMapperO;

    @Override
    public Integer querySysProIdById(SystemProperties systemProperties) {

        String sysProName = systemProperties.getSysProName();

        systemProperties.setSysProName("%" + sysProName + "%");

        return sysPropertiesMapperO.selectSysProIdById(systemProperties);
    }
}
